package com.podcstr.producer;

import com.podcstr.qualifier.CurrentSession;
import com.podcstr.session.UserSession;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.New;
import javax.enterprise.inject.Produces;
import javax.inject.Named;

/**
 * @author azim
 * @since 5/30/13 
 */
public class UserSessionProducer {

    @Named
    @Produces
    @SessionScoped
    @CurrentSession
    public UserSession getUserSession(@New UserSession userSession) {
        return userSession;
    }
}
